home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 2 / ETO Development Tools 2.iso / Tools - Objects / MPW C++ 3.1 / Interfaces / CIncludes / stream.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-09-11  |  1.7 KB  |  58 lines  |  [TEXT/MPS ]

  1. /*ident    "@(#)ctrans:incl/stream.h    1.1.8.1" */
  2. /**************************************************************************
  3.                         Copyright (c) 1984 AT&T
  4.                           All Rights Reserved   
  5.  
  6.         THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
  7.       
  8.         The copyright notice above does not evidence any        
  9.         actual or intended publication of such source code.
  10.  
  11. *****************************************************************************/
  12.  
  13. #ifndef __STREAM__
  14. #define __STREAM__
  15.  
  16. #include <iostream.h>
  17. #include <iomanip.h>
  18. #include <stdiostream.h>
  19. #include <fstream.h>
  20.     /* for filebuf */
  21.  
  22. #ifndef NULL
  23. #define NULL    0
  24. #endif
  25.  
  26. extern char*  oct(long, int =0);
  27. extern char*  dec(long, int =0);
  28. extern char*  hex(long, int =0);
  29.  
  30. extern char*  chr(int, int =0);    /* chr(0) is the empty string "" */
  31. extern char*  str(const char*, int =0);
  32. extern char*  form(const char* ...);
  33.             /* printf format
  34.                          * Things may go terribly wrong (maybe even core
  35.                          * dumps, if form tries to create a string with
  36.                          * more than "max_field_width" characters. */
  37.  
  38. /* WS used to be a special in streams. The WS manipulator
  39.  * is implemented differently but may be extracted from an istream
  40.  * with the same effect as the old form.
  41.  */
  42.  
  43. extern istream& WS(istream&) ;
  44. extern void eatwhite(istream&) ;
  45.  
  46. static const int input = (ios::in) ;
  47. static const int output = (ios::out) ;
  48. static const int append = (ios::app) ;
  49. static const int atend = (ios::ate) ;
  50. static const int _good = (ios::goodbit) ;
  51. static const int _bad = (ios::badbit) ;
  52. static const int _fail = (ios::failbit) ;
  53. static const int _eof = (ios::eofbit) ;
  54.  
  55. typedef io_state state_value ;
  56.  
  57. #endif
  58.